//
//  CollectionViewCell.h
//  liwo
//
//  Created by liuwenyang on 14-9-22.
//  Copyright (c) 2014年 liuwenyang. All rights reserved.
//

#import <UIKit/UIKit.h>

@class LBEasyCollectionViewCell;
@protocol LBEasyCollectionViewCellDelegate <NSObject>

@optional

- (void)clickElement:(LBEasyCollectionViewCell *)collectionViewCell element:(id)element ItemData:(id)itemData;

@end

@interface LBEasyCollectionViewCell : UICollectionViewCell


@property (nonatomic, weak) id<LBEasyCollectionViewCellDelegate> itemDelegate;

@property (nonatomic, strong) NSIndexPath *cellIndex;
-(void)configCellWithData:(id)data atIndexPath:(NSIndexPath *)indexPath totalListNumber:(NSInteger)totalListNumber;
+(CGSize)sizeForItem:(id)data indexPath:(NSIndexPath *)indexPath totalListNumber:(NSInteger)totalListNumber;
+(BOOL)isUseNib;

-(void)initSubViews;

@end
